import request from '@/utils/request'
//【部门管理】返回 公司信息树
export function getDepartmentTree(data: any) {
  return request({
    url: '/Base_Department/TreeJson',
    method: 'post',
    data,
  })
}
export function getList(data: any) {
  return request({
    // url: '/Base_Department/TreeGridListJson',
    url: '/Base_Department/GetPageData',
    method: 'post',
    data,
  })
}
//部门管理数据编辑
export function doEdit(data: any) {
  return request({
    url: '/Base_Department/saveDepartment',
    method: 'post',
    data,
  })
}
//部门管理数据删除
export function doDelete(data: any) {
  return request({
    url: '/Base_Department/DelDepartment',
    method: 'post',
    data,
  })
}
//部门管理获取
export function GetDepartmentInfo(data: any) {
  return request({
    url: '/Base_Department/GetDepartmentInfo',
    method: 'post',
    data,
  })
}
